package com.blog.personalblog.mapper;

import com.blog.personalblog.entity.Notice;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface NoticeMapper {
    int createNotice(Notice notice);

    int updateNotice(Notice notice);

    List<Notice> getNoticePage();

    void deleteNotice(Integer id);

    Notice getNoticeById(Integer id);

    List<Notice> getNoticeTopFive();
}
